# -*- coding: utf-8 -*-
"""
name:利率_贵州
code：HQD_interest_GZ

@author: maggieliu
"""

import math



rating_level = decisionModelResult.get("ratingLevel")
duration = float(ratingRequest.get('timeLimit'))
taxrating = {TX08_TaxRating_GZ}.lower()



customer_dict = {"A":{'a':u"一层",'b':u"一层",'c':u"二层",'d':u"缺失值",u'缺失值':u'缺失值','m':u"缺失值"},\
                    "B":{"a":u"一层","b":u"二层","c":u"三层","d":u"缺失值",u'缺失值':u'缺失值','m':u"缺失值"},\
                    "C":{'a':u"二层",'b':u"三层",'c':u"四层",'d':u"缺失值",u'缺失值':u'缺失值','m':u"缺失值"},\
                    "D":{"a":u"三层","b":u"四层","c":u"四层","d":u"缺失值",u'缺失值':u'缺失值','m':u"缺失值"},\
                    "E":{"a":u"缺失值","b":u"缺失值","c":u"缺失值","d":u"缺失值",u'缺失值':u'缺失值','m':u"缺失值"},\
                    u"缺失值":{"a":u"缺失值","b":u"缺失值","c":u"缺失值","d":u"缺失值",u'缺失值':u'缺失值','m':u"缺失值"}}
classification=customer_dict[rating_level][taxrating]


interest_dict1 = {u"一层":{3.0:0.093,6.0:0.093,9.0:0.096,12.0:0.096},\
                 u"二层":{3.0:0.096,6.0:0.096,9.0:0.102,12.0:0.102},\
                 u"三层":{3.0:0.102,6.0:0.102,9.0:0.111,12.0:0.111},\
                 u"四层":{3.0:0.111,6.0:0.111,9.0:0.12,12.0:0.12},\
                 u"缺失值":{3.0:0,6.0:0,9.0:0,12.0:0}}


result =interest_dict1[classification][duration]
